//-----------------------------------------------------------------------
// <copyright file="a_DomainService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_DomainService
    {
        #region a_Domain

        public static void Createa_Domain(a_Domain a_Domain)
        {            
            try
            {
                a_DomainDAO a_DomainDAO = new a_DomainDAO();
                a_DomainDAO.Createa_Domain(a_Domain);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Domain(a_Domain a_Domain)
        {            
            try
            {
                a_DomainDAO a_DomainDAO = new a_DomainDAO();
                a_DomainDAO.Updatea_Domain(a_Domain);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Domain(int domainID)
        {            
            try
            {
                a_DomainDAO a_DomainDAO = new a_DomainDAO();
                a_DomainDAO.Deletea_Domain(domainID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Domain Geta_Domain(int domainID)
        {            
            try
            {
                a_DomainDAO a_DomainDAO = new a_DomainDAO();
                return a_DomainDAO.Geta_Domain(domainID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_DomainCollection Geta_DomainList(a_DomainColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_DomainDAO a_DomainDAO = new a_DomainDAO();
                return a_DomainDAO.Geta_DomainList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_DomainCollection Geta_DomainList(a_DomainColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_DomainDAO a_DomainDAO = new a_DomainDAO();
                return a_DomainDAO.Geta_DomainList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}